package com.sunxu.exercise8;

/**
 * ${DESCRIPTION}
 *
 * @author Sun
 * @create 2017-08-03-21:07
 */
public class MyThread extends Thread {

    @Override
    public void run() {
        try {
            int secondValue = (int) (Math.random() * 10000);
            System.out.println(secondValue);
            Thread.sleep(secondValue);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }
}
